{% extends 'base.html' %}
{% load staticfiles %}
{% block extra_head %}
    <style>

    </style>
{% endblock %}
<br>
{% block navbar %}
    <div class="review-head">
        <div class="movie-brief">
            <table>
                <tr>
                    <td>
                        <h2>{{ movie.title }}</h2>  ..写影评
                        <span class="movie-id" style="display: none;">{{ movie.id }}</span>
                    </td>
                </tr>
            </table>
        </div>
        <div class="review-title">
            <div class="input-group input-group-lg">
                <span class="input-group-addon" id="sizing-addon1">title</span>
                <label for="review-title"></label>
                <input type="text" class="form-control" aria-describedby="sizing-addon1"
                       id="review-title" name="review-title">
            </div>
        </div>
    </div>
    <br/>
    <br>
{% endblock %}
{% block content %}
    <div class="editor-box">
        <div class="alert alert-warning" style="display: none">
            <a href="#" class="close" data-dismiss="alert">
                &times;
            </a>
            <strong>警告! 字数太短了，，至少100字。</strong>
        </div>
        <div id="editor" class="editor">
        </div>
        <br>
        <br>
        <div id="publish" style="alignment: center;"><button id="publish-review" class="btn btn-primary">发表</button>
        </div>
    </div>
{% endblock %}
{% block script %}
    <script src="{% static 'post/js/wangEditor.min.js' %}"></script>
    <script src="{% static 'post/js/post_review.js' %}"></script>
{% endblock %}
